// src/APP.vue

// 将被渲染成 <p class="foo bar active">Hi!</p>

<template>
<div id="class-example">
  <todo-item :class="{ active: isActive }"></todo-item>
</div>
</template>

<script lang="ts">
import {  defineComponent, ref } from 'vue'
import TodoItem from './components/todo-item.vue'

export default defineComponent({
  name:"APP",
  components: {
    TodoItem
  },
  setup() {
    const isActive = ref(true)
    return {
      isActive
    }
  }
})
</script>